// samsting : this file is auto create.

#include "Emr/2015-09-10/JobResourceResponse.h"

namespace aliyun { namespace Emr {

JobResourceResponse::JobResourceResponse() {
}

int JobResourceResponse::JobResourceInfo::GetType(void) const {
  return Type_;
}

const string& JobResourceResponse::JobResourceInfo::GetFilename(void) const {
  return Filename_;
}

int64 JobResourceResponse::JobResourceInfo::GetSize(void) const {
  return Size_;
}

const string& JobResourceResponse::JobResourceInfo::GetRegion(void) const {
  return Region_;
}

const std::vector<JobResourceResponse::JobResourceInfo>& JobResourceResponse::GetJobResourceInfoList(void) const {
  return JobResourceInfoList_;
}

const char* JobResourceResponse::BaseKey(void) {
  return "JobResourceResponse";
}

void JobResourceResponse::UnmarshallerMap(std::map<string, string>& response_map) {
  int JobResourceInfoList__length = 0;
  UnmarshallerInt(JobResourceInfoList__length, response_map, "JobResourceResponse.JobResourceInfoList.Length");
  if(JobResourceInfoList__length >= 0) {
    JobResourceInfoList_.resize(JobResourceInfoList__length);
    for(int i1 = 0; i1 < JobResourceInfoList__length; i1++) {
      UnmarshallerInt(JobResourceInfoList_[i1].Type_, response_map, "JobResourceResponse.JobResourceInfoList["+string_ValueOfInt(i1)+"].Type");
      UnmarshallerString(JobResourceInfoList_[i1].Filename_, response_map, "JobResourceResponse.JobResourceInfoList["+string_ValueOfInt(i1)+"].Filename");
      UnmarshallerInt64(JobResourceInfoList_[i1].Size_, response_map, "JobResourceResponse.JobResourceInfoList["+string_ValueOfInt(i1)+"].Size");
      UnmarshallerString(JobResourceInfoList_[i1].Region_, response_map, "JobResourceResponse.JobResourceInfoList["+string_ValueOfInt(i1)+"].Region");
    } // for(int i1 = 0; i1 < JobResourceInfoList__length; i1++) {
  } // if(JobResourceInfoList__length >= 0) {

}


} } // namespace aliyun { namespace Emr {

// end of file 
